<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="description" content="{$cfg_site_description}" />
<title>折價王銷售資訊</title>
{template 'header'}
<script src="{TPL}js/calendar/js/jscal2.js"  language="javascript" charset="utf-8"></script>
<script src="{TPL}js/calendar/js/lang/cn.js" language="javascript" charset="utf-8"></script>
<script src="{TPL}js/calendar/js/lang/cn.js" language="javascript" charset="utf-8"></script>
<link rel="stylesheet" type="text/css" href="{TPL}js/calendar/css/jscal2.css" />
<link rel="stylesheet" type="text/css" href="{TPL}js/calendar/css/border-radius.css" />
<link rel="stylesheet" type="text/css" href="{TPL}js/calendar/css/border-radius.css" />
<link rel="stylesheet" type="text/css" href="{TPL}js/calendar/css/steel/win2k/win2k.css" />
<body>
<div id="buy917_wrap">
    <div id="buy917_header">
    	<div id="buy917_logo"><a href="index.php">Buy917</a></div>
        <div class="buy917_header_banner">
        	<div class="buy917_header_topbanner">
            	<!-- {template 'login_line'} login_line.html 登入/註冊按鈕 --> 
				
            </div>
          	<div class="buy917_header_select">
            	
            </div>
       </div>
    </div><!-- buy917_header -->
  

       
    <div id="buy917_middle">
        	<div class="buy917_grouplist_top"></div>      
            <div class="buy917_grouplist_body"> 
                 <h2 class="abouth2">
					<ul>
						<li class="current"><a href="#">訂單資訊</a><span></span></li>
					</ul>
				</h2>
        		 <div class="box-content">
              <div class="head">
              	<h3>折價王銷售資訊</h3>
                <!--<h3>銷售額$<strong></strong></h3>-->
              </div>
              <div class="sect">		
                <div class="notice">
					<form action="mycoupon_sell_list.php" method="get">
						團購編號：<input type="text" name="gid" />&nbsp;or
						訂單編號<input type="text" name="order_sn" />
						<!--
						&nbsp;or
						日期：<input type="text" name="order_addtime" id="order_addtime" />
						<input type="button" id="order_addtimebtn"  onclick="javascript:;" value="..." />
						-->
						<input type="submit" value="搜尋"/>
					</form>
					
                    <table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="coupons-table" id="order-list">
	      			<tbody>
	      				<tr>
	      					<th>編號</th>
							<th>訂單編號</th>
							<th>團購名稱</th>
							<th>下單時間</th>
							<th>數量</th>
							<th>訂單金額</th>
							<th>以收金額</th>
							<th>會員帳號</th>
							<th>訂單狀態</th>
							<th>收款狀態</th>
						</tr>
					{loop $dataarray $n $r}
						<tr {if $n%2==0} class="alt"{else}{/if}>
							<td style="text-align: left;">{$r['oid']}</td>
							<td>{$r['order_sn']}</td>
							<td width="250px"><a href="view.php?gid={$r['gid']}" target="_blank">{mb_strimwidth($r["gtitle"],0,100,"...","UTF-8")}</a></td>
							<td>{php if($r['order_addtime']!=0)echo date("Y-m-d H:i",$r['order_addtime'])}</td>
							<td>{$r['num']}</td>
							<td>{$r['order_total_price']}</td>
							<td>{$r['order_incharge']}</td>
							<td>{$r['uname']}</td>
							<td><?php echo $value['state'] == 2 ? $_CONFIGS['order_state'][$r['state']] : "" ;?></td>
							<td><?php echo $_CONFIGS['money_state'][$r['money_state']]?></td>
						</tr>
					{/loop}
                    </tbody>
					</table>
					
                  	<ul class="paginator">
                  		{echo pagelist($total,$pagesize,$page,$theurl."mycoupon_sell_list.php?verify=$verify");}
                	</ul>  
   
                  
                </div>
              </div>
            </div>
			
            </div><!-- buy917_grouplist_body -->
            <div class="buy917_grouplist_bottom"></div>
    </div><!-- buy917_middle -->
</div><!-- buy917wrap -->
<!-- footer -->
<div id="buy917_footer">
	{template 'footer'}	
</div>
</body>
</html>
  	<script type="text/javascript">
	//<![CDATA[

      var cal = Calendar.setup({
          onSelect: function(cal) { cal.hide() },
          showTime: true
      });
      cal.manageFields("order_addtimebtn", "order_addtime", "%Y-%m-%d %H:%M");
    //]]>
	</script>
